<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="css/common.css"/>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
    <script type="text/javascript" src="js/libs/modernizr.min.js"></script>
</head>
<body>
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="index_2.php">首页</a></li>
                <li><a href="../index.php" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li><a href="http://www.jscss.me">管理员</a></li>
                <li><a href="http://www.jscss.me">修改密码</a></li>
                <li><a href="./index.php?action=messClass&func=logout">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="#"><i class="icon-font">&#xe008;</i>作品管理</a></li>
                        <li><a href="index.php?action=BowenClass&func=Bowen"><i class="icon-font">&#xe005;</i>博文管理</a></li>
                        <li><a href="#"><i class="icon-font">&#xe006;</i>分类管理</a></li>
                        <li><a href="index.php?action=messClass&func=mess"><i class="icon-font">&#xe004;</i>留言管理</a></li>
                        <li><a href="#"><i class="icon-font">&#xe012;</i>评论管理</a></li>
                        <li><a href="#"><i class="icon-font">&#xe052;</i>友情链接</a></li>
                        <li><a href="#"><i class="icon-font">&#xe033;</i>广告管理</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#"><i class="icon-font">&#xe018;</i>系统管理</a>
                    <ul class="sub-menu">
                        <li><a href="#"><i class="icon-font">&#xe017;</i>系统设置</a></li>
                        <li><a href="#"><i class="icon-font">&#xe037;</i>清理缓存</a></li>
                        <li><a href="#"><i class="icon-font">&#xe046;</i>数据备份</a></li>
                        <li><a href="#"><i class="icon-font">&#xe045;</i>数据还原</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="#">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">作品管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="index.php?action=messClass&func=query" method="post">
                    <table class="search-tab">
                        <tr>
                            <th width="120">选择分类:</th>
                            <td>
                                <select name="search-sort" id="">
                                    <option value="">全部</option>
                                    <option value="19">精品界面</option><option value="20">推荐界面</option>
                                </select>
                            </td>
                            <th width="70">关键字:</th>
                            <td><input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text"></td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="insert.php"><i class="icon-font"></i>新增作品</a>
                        <a id="batchDel" href="javascript:void(0)"><i class="icon-font"></i>批量删除</a>
                        <a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                    
			
		
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox"></th>
                            
                            <th>ID</th>
                            <th>email</th>
                            <th>留言人</th>
                            <th>内容</th>
                            <th>发布时间</th>
                            <th>修改</th>
                        </tr>
							<?php
				
							do{
								?>
                        <tr>
                            <td class="tc"><input name="id[]" value="59" type="checkbox"></td>
                           
                            <td><?php  echo @$rel->id; ?></td>
                            <td><?php  echo @$rel->email;?></td>
                            <td><?php  echo @$rel->title;?></td>
                            <td><?php  echo @$rel->content;?></td>
                            <td><?php echo @date('Y年m月d日 H时i分s秒',$rel->time);?></td>
                            <td>
                            	<a href= "./index.php?action=messClass&func=modify&id=<?php echo @$rel->id; ?> ">修改</a>
                            	<a onclick="return confirm('确定删除？')" href= "./index.php?action=messClass&func=delete&id=<?php echo @$rel->id; ?>">删除</a>
                            </td>
                        </tr>
                        <?php  } while($rel=mysql_fetch_object($sql));
							 ?>
                    </table>
                    <style>
                    	.fanye{margin-left: 380px;}
                    </style>
			        <div class="fanye">
		        <?php
		             $file=$page_num-1;
		             $show=$page_num+1;
		        echo "<a href=./index.php?action=messClass&func=mess&page_num=1>首页</a>";
		        if($page_num!=1){
		        	
					echo "<a href=./index.php?action=messClass&func=mess&page_num=$file>前一页</a>";
		        }else{
		        	echo"前一页";
		        }
		        
		       if($page_num<$page_max){
		       	 echo "<a href=./index.php?action=messClass&func=mess&page_num=$show>后一页</a>";
		       }else{
		       	echo "后一页";
		       }
				echo "<a href=./index.php?action=messClass&func=mess&page_num=".($page_max).">尾页</a>";
				        ?>
				        </div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
<script src="js/jquery.js"></script>
<script> 
  

</script>



</body>
</html>